package xa.woniu.entity;

import java.io.Serializable;

/**
 * userinfo
 * @author 
 */
public class Userinfo implements Serializable {
    private Integer uid;

    private String uacc;

    private String upwd;

    private String uname;

    private String usex;

    private String unid;

    private Integer ubalance;

    private Integer uroid;

    private static final long serialVersionUID = 1L;

    public Integer getUid() {
        return uid;
    }

    public void setUid(Integer uid) {
        this.uid = uid;
    }

    public String getUacc() {
        return uacc;
    }

    public void setUacc(String uacc) {
        this.uacc = uacc;
    }

    public String getUpwd() {
        return upwd;
    }

    public void setUpwd(String upwd) {
        this.upwd = upwd;
    }

    public String getUname() {
        return uname;
    }

    public void setUname(String uname) {
        this.uname = uname;
    }

    public String getUsex() {
        return usex;
    }

    public void setUsex(String usex) {
        this.usex = usex;
    }

    public String getUnid() {
        return unid;
    }

    public void setUnid(String unid) {
        this.unid = unid;
    }

    public Integer getUbalance() {
        return ubalance;
    }

    public void setUbalance(Integer ubalance) {
        this.ubalance = ubalance;
    }

    public Integer getUroid() {
        return uroid;
    }

    public void setUroid(Integer uroid) {
        this.uroid = uroid;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Userinfo other = (Userinfo) that;
        return (this.getUid() == null ? other.getUid() == null : this.getUid().equals(other.getUid()))
            && (this.getUacc() == null ? other.getUacc() == null : this.getUacc().equals(other.getUacc()))
            && (this.getUpwd() == null ? other.getUpwd() == null : this.getUpwd().equals(other.getUpwd()))
            && (this.getUname() == null ? other.getUname() == null : this.getUname().equals(other.getUname()))
            && (this.getUsex() == null ? other.getUsex() == null : this.getUsex().equals(other.getUsex()))
            && (this.getUnid() == null ? other.getUnid() == null : this.getUnid().equals(other.getUnid()))
            && (this.getUbalance() == null ? other.getUbalance() == null : this.getUbalance().equals(other.getUbalance()))
            && (this.getUroid() == null ? other.getUroid() == null : this.getUroid().equals(other.getUroid()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getUid() == null) ? 0 : getUid().hashCode());
        result = prime * result + ((getUacc() == null) ? 0 : getUacc().hashCode());
        result = prime * result + ((getUpwd() == null) ? 0 : getUpwd().hashCode());
        result = prime * result + ((getUname() == null) ? 0 : getUname().hashCode());
        result = prime * result + ((getUsex() == null) ? 0 : getUsex().hashCode());
        result = prime * result + ((getUnid() == null) ? 0 : getUnid().hashCode());
        result = prime * result + ((getUbalance() == null) ? 0 : getUbalance().hashCode());
        result = prime * result + ((getUroid() == null) ? 0 : getUroid().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", uid=").append(uid);
        sb.append(", uacc=").append(uacc);
        sb.append(", upwd=").append(upwd);
        sb.append(", uname=").append(uname);
        sb.append(", usex=").append(usex);
        sb.append(", unid=").append(unid);
        sb.append(", ubalance=").append(ubalance);
        sb.append(", uroid=").append(uroid);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}